package com.example.kotlinstudy.基本语法

//class Shape
//
//class Rectangle(var height: Double, var length: Double) {
//    var perimeter = (height + length) * 2
//}
//fun com.example.kotlinstudy.类与对象.main() {
//    val rectangle = Rectangle(5.0, 2.0)
//    println("The perimeter is ${rectangle.perimeter}")
//}

//open为继承
//open class Shape
//class Rectangle(var height: Double, var length: Double) : Shape() {
//    var perimeter = (height + length) * 2
//
//}
